#include "Nano100Series.h"
#include "GpioIrq.h"
#include "TouchSensor.h"

void GPABC_IRQHandler(void)
{
	PA->ISRC = PA->ISRC;
	PB->ISRC = PB->ISRC;
	PC->ISRC = PC->ISRC;
}

void GPDEF_IRQHandler(void)
{
	PD->ISRC = PD->ISRC;
	PE->ISRC = PE->ISRC;
	PF->ISRC = PF->ISRC;
}

void GpioIrqInit(void)
{
	GPIO_SET_DEBOUNCE_TIME(GPIO_DBCLKSRC_HCLK, GPIO_DBCLKSEL_32768);
	NVIC_EnableIRQ(GPABC_IRQn);
	NVIC_EnableIRQ(GPDEF_IRQn);
}

